// scaup - Scala up!
// (c) 2009, Normen Müller, normen.mueller@gmail.com  
// $Id: DG.scala 89 2010-05-11 21:58:00Z normen.mueller $
package locutor.draft.dg.parsing

import java.io.File

import scaup.Views._
/** This object provides a simple interface to the dependency graph parser class.
 * 
 * @author <a href="mailto:normen.mueller@googlemail.com">Normen M&#xFC;ller</a>
 * @version 0.0.5 */
//private [locutor] object DependencyGraphParser extends Parser {
//  
//  def parse(description: File): DependencyGraph =
//    if(description == null)
//      error("Dependency graph description may not be null.")
//    else if(! (description exists))
//      error("Dependency graph description \"" + description.path + "\" does not exists.")
//    else parse(description.content)
//  
//  def parse(description: String) = phrase(dg)(new lexical.Scanner(description)) match {
//    case Success(result, _) => result
//    case n@_                => throw new Exception("DG parsing error: " + n)
//  }
//  
//}
